import request from '@/utils/request'

export function getConsultRecord(departmentId) {
  return request({
    url: '/doctor/consultRecord/getConsultRecord/'+departmentId,
    method: 'get',
  })
}

export function getDepartmentInfo(departmentId) {
  return request({
    url: '/doctor/department/getDepartmentInfo/'+departmentId,
    method: 'get',
  })
}
export function updStatus(status) {
  return request({
    url: '/doctor/doctor/updStatus/'+status,
    method: 'get',
  })
}
export function startConsult(consultId) {
  return request({
    url: '/doctor/consultRecord/startConsult/'+consultId,
    method: 'get',
  })
}
export function getDoctorInfoById(doctorId) {
  return request({
    url: '/system/doctor/getDoctorInfoById/'+doctorId,
    method: 'get',
  })
}
export function getCommunicationHistory(consultId) {
  return request({
    url: '/doctor/communication/getCommunicationHistory/'+consultId,
    method: 'get',
  })
}

export function finishConsult(id,result,medications) {
  return request({
    url: '/doctor/consultRecord/finishConsult',
    method: 'post',
    data:{id,result,medications}
  })
}
export function getMedicationList() {
  return request({
    url: '/doctor/medication/getMedicationList',
    method: 'get',
  })
}

